<!--#include file="admin/Includes/constants.asp"-->
<!--#include file="admin/Includes/validate.asp"-->
<%
dim qid, comment, squestion
dim i , aData, nRows, hasData
dim Action , sAdd , optionid


optionid = request("rqsurvey")
squestion = request("title")
qid = request("qid")
sAdd = "Add"

Action = request("act")

if Action <> "" then

	comment = request("rqcomment")		'survey comment
	if qid = "" then qid = 0 


		strSQL = "{CALL a_survey_question ('"& qid & "',N'" & comment & "','" & ckid &"')}"
		'response.write strsql
		'response.end
		Exec(strsql)

		'Close connection
		CloseCon
		
		Response.redirect "reportsurvey.asp?ckid=" & ckid &"&sid=" &qid & "&rqsurvey=" & optionid
		response.end		
end if

'Close connection
CloseCon



%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<Meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Thoitrang.com-Gop y</title>
	<Meta name="keywords" content="thoi trang, thoitrang, thoi trang tre, thoi trang viet nam"> 
	<Meta name="description" content="Tap chi truc tuyen thoi trang viet nam thoitrang.com">
	<Meta http-equiv=" content-language" content ="vi">
	<Meta name="Robots" content="noindex,nofollow">
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> 
	<link rel="icon" href="favicon.ico" type="image/x-icon"> 
	<link rel="STYLESHEET" type="text/css" href="system/styles.css">
    <script language="JavaScript" type="text/javascript" src="admin/javascripts/validateVN.js"></script>		
</head>
<body>
<div id="container">
<div id="bt2"><img src="hinh-thoi-trang/bg_top.gif" width="1049" height="20"></div>
<div id="tp">
<table border="0" cellpadding="0" cellspacing="0" width="990" align="center">	
	<!--top-->
	<!--#include file="system/top.asp" -->
	<!--/top-->
	<tr bgcolor="#6b5a60">
		<td width="160" style="height:1px;"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td>
		<td width="522" valign="top" rowspan="2">		
		<!--body content-->		
			<!--cover-->		
		<table border="0" cellpadding="0" cellspacing="1" width="100%" bgcolor="#B6A8AD">			
			<tr><td colspan="3" style="padding-left:12px; "><img src="hinh-thoi-trang/ket-qua-tham-khao-hp.gif" width="400" height="40"></td></tr>
			<tr>
				<!--col left-->		
				<td valign="top" height=680>
					<table cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF" width="100%">
						<tr>
							<td style="padding-left:9px;padding-top:11px;" valign=top>
								<table cellpadding="0" cellspacing="0" border="0" width=100%>
								<%if squestion <> "" then%>
								<tr><td><h5 class="paging" style="color:#8D0045; line-height:200%; font-weight:bold; padding:0px 10px 0px 0px;"><%=squestion%></h5></td></tr>
								<%end if%>			
								<form action="surveycomment.asp?ckid=<%=ckid%>&qid=<%=qid%>&rqsurvey=<%=optionid%>" method=post onSubmit="return isValid(this)">
								<tr>
									<td class="paging">
									Ý kiến của bạn<br>
									<textarea id="Ý kiến của bạn" name="rqcomment" rows="10" style="background-color:#D2D4CC;height:150px;width:500px"></textarea>
									</td>
								</tr>
								<tr><td align=right><input type="submit" name="act" value="Gởi" class="btnGo">&nbsp;&nbsp;</td></tr>
								
								</form>
								<tr><td><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="15" border="0"></td></tr>
								</table>										
							</td>
						</tr>
					</table>						 
				</td>
				<!--/col left-->							
			</tr>
		</table>
			<!--/text-->		
		<!--/body content-->
		</td>
		<td width="308" style="width:0px;"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td>
	</tr>
	<!--main body-->
	<tr bgcolor="#ffffff">
		<td bgcolor="#000000" width="160" valign="top">
		<!--#include file="system/left.asp" -->
		</td>
		<!--missing 1 TD because of Rowspan-->		
		<td bgcolor="#614B00" width="308" valign="top">
			<table border="0" cellpadding="0" cellspacing="0" width="308" align="right">
				<tr bgcolor="#000000"><td colspan="2"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td></tr>
				<form action="search.asp?ckid=<%=ckid%>" method="post">
				<tr bgcolor="#8D0045">
					<td width="154" valign="top" height="33" ><input type="text" name="search" value="Tìm kiếm" size="22" class="txtSearch"></td>
					<td width="154" valign="top" style="padding-top:7px;padding-left:3px;"><input type="submit" name="go" value="TÌM" class="btnGo"></td>
				</tr>
				</form>
				<tr bgcolor="#000000"><td colspan="2"><img src="hinh-thoi-trang/de_clear.gif" alt="" width="1" height="1" border="0"></td></tr>
				<!--Ads Starts-->
				<tr><td align="center" colspan="2"><img src="hinh-quang-cao/neimanmarcus350x250.jpg" alt="" width="300" height="250" border="0"></td></tr>
				<!--Ads Ends-->
			</table>
		</td>
	</tr>
	<!--/main body-->
	<!--#include file="system/bottom.asp" -->
</table>
</div>
<div id="bt2"><img src="hinh-thoi-trang/bg_bottom.gif" width="1049" height="20"></div>
</div>
</body>
</html>